package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JcTeamMapper;
import com.ruoyi.system.domain.JcTeam;
import com.ruoyi.system.service.IJcTeamService;
import com.ruoyi.common.core.text.Convert;

/**
 * 竞彩球队Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-20
 */
@Service
public class JcTeamServiceImpl implements IJcTeamService 
{
    @Autowired
    private JcTeamMapper jcTeamMapper;

    /**
     * 查询竞彩球队
     * 
     * @param id 竞彩球队主键
     * @return 竞彩球队
     */
    @Override
    public JcTeam selectJcTeamById(Long id)
    {
        return jcTeamMapper.selectJcTeamById(id);
    }

    /**
     * 查询竞彩球队列表
     * 
     * @param jcTeam 竞彩球队
     * @return 竞彩球队
     */
    @Override
    public List<JcTeam> selectJcTeamList(JcTeam jcTeam)
    {
        return jcTeamMapper.selectJcTeamList(jcTeam);
    }

    /**
     * 新增竞彩球队
     * 
     * @param jcTeam 竞彩球队
     * @return 结果
     */
    @Override
    public int insertJcTeam(JcTeam jcTeam)
    {
        return jcTeamMapper.insertJcTeam(jcTeam);
    }

    /**
     * 修改竞彩球队
     * 
     * @param jcTeam 竞彩球队
     * @return 结果
     */
    @Override
    public int updateJcTeam(JcTeam jcTeam)
    {
        return jcTeamMapper.updateJcTeam(jcTeam);
    }

    /**
     * 批量删除竞彩球队
     * 
     * @param ids 需要删除的竞彩球队主键
     * @return 结果
     */
    @Override
    public int deleteJcTeamByIds(String ids)
    {
        return jcTeamMapper.deleteJcTeamByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除竞彩球队信息
     * 
     * @param id 竞彩球队主键
     * @return 结果
     */
    @Override
    public int deleteJcTeamById(Long id)
    {
        return jcTeamMapper.deleteJcTeamById(id);
    }
}
